<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
		// es6中对象的键 使用[a]  a 就会找变量
		// const a = 'zs'
		const obj = {
			[a]: 10,
		  age: 100
		}
		console.log(obj); // { a: 10}
	</script>
</body>
</html>